import { IsNotEmpty } from 'class-validator';

export class AddBookDto {
  @IsNotEmpty({
    message: '会议室不能为空',
  })
  room: string;
  @IsNotEmpty({
    message: '参与人员不能为空',
  })
  user: string;
  @IsNotEmpty({
    message: '开始时间不能为空',
  })
  startTime: Date;
  @IsNotEmpty({
    message: '结束时间不能为空',
  })
  endTime: Date;
  note: string;
}
